package ua.org.tumakha.resume;

/**
 * @author Yuriy Tumakha
 */
public class FontConverter {

	private static String fontsDir = "./font/";

	public static void main(String[] args) {
		runTTFReader("arial.ttf", "arial.xml");
		runTTFReader("arialbd.ttf", "arialbd.xml");
		runTTFReader("arialbi.ttf", "arialbi.xml");
		runTTFReader("ariali.ttf", "ariali.xml");
		runTTFReader("times.ttf", "times.xml");
		runTTFReader("timesbd.ttf", "timesbd.xml");
		runTTFReader("timesbi.ttf", "timesbi.xml");
		runTTFReader("timesi.ttf", "timesi.xml");
		runTTFReader("cour.ttf", "cour.xml");
		runTTFReader("courbd.ttf", "courbd.xml");
		runTTFReader("courbi.ttf", "courbi.xml");
		runTTFReader("couri.ttf", "couri.xml");
	}

	private static void runTTFReader(String ttfFile, String xmlFile) {
		String[] arguments = new String[2];
		arguments[0] = fontsDir + ttfFile;
		arguments[1] = fontsDir + xmlFile;
		org.apache.fop.fonts.apps.TTFReader.main(arguments);
	}

}
